<?php

class Admin_Form_Adminemail extends Zend_Form {

    public function init() {
        $this->setMethod("post");

        $email = new Zend_Form_Element_Text('email');
        $email->setLabel("Admin Email:")
                ->addFilter("StringTrim")
                ->addValidator("EmailAddress")
                ->setRequired()
                ->setAttribs(array('class' => 'span12', 'placeholder' => 'Enter email address where contact-us email will be sent'));

        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel("Update")
                ->setAttribs(array('class' => 'btn btn-success'));

        $this->addElements(array($email, $submit));
    }

}

